import WeVolumeUniform from './WeVolumeUniform'
import WeLengthwaysUniform from './WeLengthwaysUniform'

class WeDisplayParameter {
  static scaleZ = 1.0
  static offsetZ = 0.0
  static translucent = false
  static Volume = new WeVolumeUniform()
  static Lengthways = new WeLengthwaysUniform()

  static setupUniform(uniforms) {
    WeDisplayParameter.Volume._weUniform.setupUniform(uniforms)
    WeDisplayParameter.Lengthways._weUniform.setupUniform(uniforms)
  }

  static setupUniformMap(uniforms) {
    WeDisplayParameter.Volume._weUniform.setupUniformMap(uniforms)
    WeDisplayParameter.Lengthways._weUniform.setupUniformMap(uniforms)
  }

  static getSource(value) {
    return `
      ${WeDisplayParameter.Volume._weUniform.getSource(value)}
      ${WeDisplayParameter.Lengthways._weUniform.getSource(value)}
    `
  }
}



export default WeDisplayParameter
